<template>
  <li class="item" @click="jumpRecommend">
    <img :src="item.picUrl">
    <p>{{item.playCount|formatNum}}</p>
    <h6>{{item.name}}</h6>
  </li>
</template>
<script>
export default {
  props: {
    item: Object,
  },
  filters: {
    formatNum(value) {
      return (value / 10000).toFixed(1) + "万";
    },
  },
   methods:{
    jumpRecommend(){
      // console.log(this.item.id)
      this.$router.push(`/recommendlist/${this.item.id}`);
      
    },
   
  }
};
</script>
<style lang="less" scoped>
.item {
  margin-bottom: 10px;
  width: 33%;
  position: relative;
  img {
    width: 100%;
  }
  p {
    right: 5px;
    top: 2px;
    z-index: 3;
    padding-left: 13px;
    position: absolute;
    color: #fff;
    font-size: 12px;
    background-position: 0;
    background-repeat: no-repeat;
    background-size: 11px 10px;
    text-shadow:  1px 0 0 rgb(0, 0, 0 / 15%);
    background-image: url();
  }
  h6 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 6px 2px 0 6px;
    min-height: 30px;
    line-height: 1.2;
    font-size: 13px;
    color: #333;
    // font-size: 14px;
    font-weight: 400;
  }
}
</style>

 